e6fb5145cbdcdff0a77ec7e669dbc163c0e58300,community/bolt/src/test/java/org/neo4j/bolt/v1/messaging/Neo4jPackTest.java,Neo4jPackTest,shouldBeAbleToPackAndUnpackRelationship,#,145

Before Change


    public void shouldBeAbleToPackAndUnpackRelationship() throws IOException
    {
        // Given
        Object unpacked = unpacked( packed( ALICE_KNOWS_BOB ) );

        // Then
        assertThat( unpacked, instanceOf( Relationship.class ) );
        Relationship unpackedRelationship = (Relationship) unpacked;
        assertThat( unpackedRelationship.getId(), equalTo( ALICE_KNOWS_BOB.getId() ) );
        assertThat( unpackedRelationship.getStartNode().getId(),
                equalTo( ALICE_KNOWS_BOB.getStartNode().getId() ) );

After Change


        // Expect
        exception.expect( BoltIOException.class );
        // When
        unpacked( packed( ALICE_KNOWS_BOB ) );
    }

    @Test